package com.yxl.toolsite.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HomeController {

    @RequestMapping("/")
    public String home() {
        return "index";
    }

    @RequestMapping("/websocketTest.html")
    public String websocketTest() {
        return "websocketTest";
    }

    @RequestMapping("/timestamp.html")
    public String timestampUtil() {
        return "timestampUtil";
    }

    @RequestMapping("/formatjson.html")
    public String formatJson() {
        return "formatJson";
    }

    @RequestMapping("/encrypt.html")
    public String encrypt() {
        return "encrypt";
    }
}
